:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --background-color: #f8f9fa;
  --text-color: #333;
  --border-color: #dee2e6;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  max-width: 1000px;
  margin: 30px auto;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-color);
}

h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 2.2rem;
}

.display-area {
  width: 960px;
  height: 540px;
  margin: 0 auto;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 10px var(--shadow-color);
}

.display-area::before {
  content: "16:8 游戏画面区域";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #aaa;
  font-size: 1.2rem;
}
.upload-container {
margin: 20px auto 0;
background: white;
padding: 15px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: fit-content;
}


.custom-file-input {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background-color: #4a6bff;
color: white;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: all 0.3s ease;
border: none;
}

.custom-file-input:hover {
background-color: #3a5bef;
transform: translateY(-2px);
}

.custom-file-input:active {
transform: translateY(0);
}

.file-name {
font-size: 14px;
color: #666;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.hidden-input {
display: none;
}

.upload-icon {
font-size: 18px;
}